package com.zhouyu;

import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportAware;
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.core.type.AnnotationMetadata;

import java.util.Map;


public   class Jerry implements ImportAware {
		@Override
		public void setImportMetadata(AnnotationMetadata importMetadata) {
			Map<String, Object> annotationAttributes = importMetadata.getAnnotationAttributes(Import.class.getName());
			AnnotationAttributes attributes = AnnotationAttributes.fromMap(annotationAttributes);

			System.out.println(attributes +"============");
		}
	}